function DialogInput(doc, container, width, height, user, date, options, data) {
  this._doc = doc;
  this._container = container;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;
  this._unique = MiscUtils.unique();
  this._isText = (options && options.isText) ? options.isText : false;
  this._createElements();
  this._gui = AbsDialogInput.gui(this._unique);
};

DialogInput.prototype._createElements = function() {
  var table, tr, td;
  
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.style.width = '460px';
  table.style.marginTop = '10px';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  if (this._isText) {
    var text = document.createElement('input');
    text.type = 'text';
    text.id = this._unique + '_input_textarea';
    text.style.width = '98%';
    text.style.height = '24px';
    td.appendChild(text);
  } else {
    var text = document.createElement('textarea');
    text.id = this._unique + '_input_textarea';
    text.style.overflowY = 'hidden';
    text.style.width = '98%';
    text.style.height = '200px';
    td.appendChild(text);
  }
};